package com.aiit.carinsurance2.service.impl;

import com.aiit.carinsurance2.dao.UserinsurancepayDao;
import com.aiit.carinsurance2.pojo.Userinsurancepay;
import com.aiit.carinsurance2.service.UserinsuranceService;
import com.aiit.carinsurance2.service.UserinsurancepayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserinsurancepayServiceImpl implements UserinsurancepayService {

    @Autowired
    private UserinsurancepayDao userinsurancepayDao;

    @Override
    public Userinsurancepay querybyid(Integer uid) {
        return userinsurancepayDao.querybyid(uid);
    }

    @Override
    public int insert(Integer uid, Double insurancepay, Double insurancemoney) {
        return userinsurancepayDao.insert(uid,insurancepay,insurancemoney);

    }
}
